package com.gator.desig_mode.command;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc 命令调用者
 */
public class Invoker {

  private Command command;

  public Invoker(Command command) {
    this.command = command;
  }

  public void processExecute(int instructions){
    command.execute(instructions);
  }

  public void processUndo(){
    command.undo();
  }


}
